window.onload = function(){
document.onscroll = function (){
    let scroll = document.documentElement.scrollTop;
    let search = document.getElementById('fixedBox');
    if(scroll>0){
        search.style.position = 'fixed';
        search.style.left = '0';
        search.style.top = '0';
    }else{
        search.style.position = 'static';
    }
}
}